<? 
$section='Orders'; 
?>
 <? 
include_once('../inc/functions.php');
require_once('../inc/global.php');
require_once('../inc/userdata.php');
$ordertest = orderstuff ();
?>
<?
	include('inc/header.php');
?>
</head>
<body>
<? 
	include('inc/adminnav.php')
?>
<br><br>
<div class="content">
<!-- < print_r($ordertest)?> -->
<h2>Recent Orders</h2>
<table width="100%">
<tr>
<td>Name</td>
<td>Shipping Address</td>
<td>Billing Address</td>
<td>Product</td>
<td>Amount Purchased</td>
</tr>
<? while ($oo = $ordertest->fetch_assoc()){ ?>
<tr>
<td>
<?=$oo['FirstName']?> <?=$oo['LastName']?>
</td>
<td>
<?=$oo['shipping']?>
</td>
<td>
<?=$oo['billing']?>
</td>
<td>
<?=$oo['product_name']?>
</td>
<td>
<?=$oo['order_quantity']?>
</td>
</tr>
<? } ?>
</table>
</div>
</body>
</html>